package com.smxy.daydayup.util.osa;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Author: yusy
 * @Date: 2022/8/31
 */
public interface SelfHelpFileFetcher {
    /**
     * 直接往响应返回文件
     *
     * @param response
     * @param path
     * @throws IOException
     */
    void fetch(HttpServletResponse response, String path) throws IOException;

    /**
     * 返回实际的文件
     *
     * @param path
     * @return
     * @throws IOException
     */
    byte[] fetchRaw(String path) throws IOException;
}
